package com.space.loboratory.consumer;

import com.space.laboratory.api.HelloServiceI;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author <a href="mailto:414563035@qq.com">Bedroom</a>
 * @date 2021/4/3 4:08 下午
 */
@Configuration
public class DubboServices {
    @DubboReference
    @LoadBalanced
    HelloServiceI helloService;

    @Bean
    public HelloServiceI helloService() {
        return helloService;
    }
}
